<?php
namespace app\home\controller;

use think\Controller;
//引入Session类
use think\Session;
use think\Request;
use think\Validate;

class Common extends Controller
{
	/**
	 * 登录验证
	 */
	public function _initialize()
	{
		$user_id = Session::get('user_id');
		if(empty($user_id)){
			$this->redirect("/home/login/login");
			exit;
		}
	}
}